import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Main from '@/components/Main'
import Admin from '@/components/Admin'
import Bill from '@/components/Bill'
import Location from '@/components/Location'
import LocationDemo from '@/components/LocationDemo'
import BillDetail from '@/components/BillDetail'
import articleManagementType from '@/components/articleManagement/type'
import articleManagementContent from '@/components/articleManagement/content'
import advertisementType from '@/components/advertisement/type'
import advertisementContent from '@/components/advertisement/content'
import Register from '@/components/Register'
import EscortList from '@/components/EscortList'
import EscortState from '@/components/EscortState'
import commissionSettlement from '@/components/commissionSettlement'

Vue.use(Router)

export default new Router({

  routes: [
    {
      path: '/',
      component: Login,
    },
    {
      path: '/Register',
      component: Register,
    },


    {
      path: '/main',
      component: Main,
      children: [
        {
          path: 'admin',
          component: Admin,
        },
        {
          path: 'bill',
          component: Bill,
        },
        {
          path: 'billDetail',
          component: BillDetail,
        },
        {
          path: 'location',
          component: Location,
        },
        {
          path: 'demo',
          component: LocationDemo,
        },
        {
          path: 'articleManagementType',
          component: articleManagementType,
        },
        {
          path: 'articleManagementContent',
          component: articleManagementContent,
        },
        {
          path: 'advertisementType',
          component: advertisementType,
        },
        {
          path: 'advertisementContent',
          component: advertisementContent,
        },
        {
          path: 'EscortList',
          component: EscortList,
        },
        {
          path: 'EscortState',
          component: EscortState,
        },
        {
          path: 'commissionSettlement',
          component: commissionSettlement,
        },
      ]
    },

  ],
  mode: "history"
})
